package de.tum.in.eist.poll.client;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Representation of a feedback submitted by a student.
 */
public class Feedback implements IsSerializable {
	
	/**
	 * The lecture the feedback addresses.
	 */
	private Lecture lecture;
	
	/*
	 * Variables for saving the poll options.
	 */
	
	private int satisfaction;
	private String like, dislike;
	
	/**
	 * The student who submitted the feedback. 
	 * For anonymity reasons, this will not be used in this implementation
	 */
	//private Student student;
	
	/**
	 * Default zero-argument constructor.
	 */
	public Feedback() {
	}
	
	/**
	 * @param lecture {@link #lecture}
	 * @param student {@link #student}
	 */
	public Feedback(Lecture lecture, int satisfaction, String like, String dislike) {
		this.lecture = lecture;
		this.satisfaction = satisfaction;
		this.like = like;
		this.dislike = dislike;
	}
	
	/**
	 * @return the {@link #lecture}.
	 */
	public Lecture getLecture() {
		return lecture;
	}

	public int getSatisfaction() {
		return satisfaction;
	}
	
	public String getLike() {
		return like;
	}
	
	public String getDislike() {
		return dislike;
	}
	
}
